package MainPage;

import java.awt.Cursor;


public class logoutPage extends javax.swing.JFrame{

    /** Creates new form LOGOUTPAGE */
    public logoutPage() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        jbtnhome = new javax.swing.JButton();
        headerLabel = new javax.swing.JLabel();
        textLabel = new javax.swing.JLabel();
        text1Label = new javax.swing.JLabel();
        smileLabel = new javax.swing.JLabel();
        backgroundLabel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jbtnhome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resource/home-button.jpg"))); // NOI18N
        jbtnhome.setBounds(20, 20, 50, 50);
        jbtnhome.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jbtnhome.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
            	firstPage.playAudio2(getClass().getResource("/resource/buttonHit.wav").getFile());
                homeButtonActionPerformed(evt);
            }
        });
        jLayeredPane1.add(jbtnhome, javax.swing.JLayeredPane.DEFAULT_LAYER);

        headerLabel.setFont(new java.awt.Font("Monospaced", 1, 24)); // NOI18N
        headerLabel.setForeground(new java.awt.Color(255, 80, 0));
        headerLabel.setText("Thank you for using My Calendar");
        headerLabel.setBounds(430, 280, 434, 28);
        jLayeredPane1.add(headerLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        textLabel.setFont(new java.awt.Font("Monospaced", 1, 24)); // NOI18N
        textLabel.setForeground(new java.awt.Color(255, 80, 0));
        textLabel.setText("Have a Nice Day!!");
        textLabel.setBounds(520, 330, 250, 40);
        jLayeredPane1.add(textLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        text1Label.setFont(new java.awt.Font("Monospaced", 1, 24)); // NOI18N
        text1Label.setForeground(new java.awt.Color(255, 80, 0));
        text1Label.setText("See You Again");
        text1Label.setBounds(540, 390, 200, 28);
        jLayeredPane1.add(text1Label, javax.swing.JLayeredPane.DEFAULT_LAYER);

        smileLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resource/smile_icon.gif"))); // NOI18N
        smileLabel.setBounds(750, 380, 50, 50);
        jLayeredPane1.add(smileLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        backgroundLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resource/logoutbackground.jpg"))); // NOI18N
        backgroundLabel.setBounds(0, 0, 1260, 810);
        jLayeredPane1.add(backgroundLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1263, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new logoutPage().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JLabel backgroundLabel;
    private javax.swing.JLabel headerLabel;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JButton jbtnhome;
    private javax.swing.JLabel smileLabel;
    private javax.swing.JLabel text1Label;
    private javax.swing.JLabel textLabel;
   
    void performMainPage()
	{
		//pane.removeAll();
		userMainPage main_page=new userMainPage()
		{
			public String getParameter(String name)
			{
		           if (name.equalsIgnoreCase("msg"))
		           {
		              return "Local Frame";
		           }
		           return null;
		    }
		};
		
		this.dispose();
		main_page.setSize(userMainPage.screensize.width, userMainPage.screensize.width);
		main_page.setVisible(true);
	}
    private void homeButtonActionPerformed(java.awt.event.ActionEvent evt) {
        performMainPage();
     } 
	

}
